package org.example.designPattern.structural.proxy.dynamicproxy.jdkProxy;


/*
*   JDK代理：需要目标类继承接口，会创建兄弟类作为代理类
* */
public class JDKProxyTest {
    public static void main(String[] args) {
        JDKProxy jdkProxy = new JDKProxy();
        IPerson instance = jdkProxy.getInstance(new Zhangsan());
        instance.requirement();

        System.out.println("----------------------------");

//        instance.introduction();
    }
}
